﻿@model ChinaCircleJerk.Models.DetailsVm
@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<div>
    <h4>@Model.ThatPost.Title</h4>
    <hr />
    <p>
        @Html.DisplayFor(model => model.ThatPost.Body)
    </p>
    <p>@Html.ActionLink("Reply", "CreateReply", "Home", new { id = Model.ThatPost.PostId }, "")</p>
</div>
<hr />
<div>
    <h2>Replies</h2>
    <hr />
    <dl class="dl-horizontal">
        @foreach (var r in Model.AllReplies)
        {
            <dt>
                @r.User
            </dt>
            <dd>
                @r.Body | @Html.ActionLink("Delete", "DeleteReply", "Home", new { id = r.ReplyId }, "")
            </dd>
        }
    </dl>
</div>